/**
 * 版权所有 (C), 2019-2019, XXX有限公司
 * 项目名：com.company.study.dsa.linkedlist
 * 文件名: SingleLinkedListTest
 * 日期: 2019/6/18 14:29
 * 说明:
 */
package com.company.study.dsa.linkedlist;

/**
 * @author Anbang713
 * @create 2019/6/18
 */
public class SingleLinkedListTest {

    public static void main(String[] args) {
        SingleLinkedList linkedList = new SingleLinkedList();
        linkedList.addHead("A");
        linkedList.addHead("B");
        linkedList.addHead("C");
        linkedList.addHead("D");
        linkedList.display();
        linkedList.delete("C");
        linkedList.display();
        System.out.println(linkedList.find("B"));
    }
}